﻿using System;
using System.Collections.Generic;
using System.Text;
using Model;

namespace IDAL
{
    /// <summary>
    /// 刘志超
    /// </summary>
    public interface IRoomIntensiveDAL
    {
        /// <summary>
        /// 病房分配
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        List<RoomIntensive> GetRoom();
        /// <summary>
        /// 病房类型下拉
        /// </summary>
        /// <returns></returns>
        List<RoomType> GetRoomTypes();
        /// <summary>
        /// 新增病房
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        int AddRoom(RoomIntensive m);

        /// <summary>
        /// 病房详情
        /// </summary>
        /// <param name="pid"></param>
        /// <returns></returns>
        RoomIntensive GetRoomById(int pid);
        /// <summary>
        /// 编辑病房
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        int UptRoom(RoomIntensive m);

    }
}
